package com.kevin.struct.arrays;

public class Test {
    public static void main(String[] args) {
        Array array = new Array();
        for (int i = 0; i < 5; i++) {
            array.addLast(i);
        }
        System.out.println(array);
        array.add(1,100);
        System.out.println(array);
        array.addLast(-1);
        System.out.println(array);
        array.addFirst(-12);
        System.out.println(array);
        System.out.println(array.get(2));
        array.set(3,30);
        System.out.println(array);
        System.out.println(array.contain(4));
    }
}
